<%-- 
    Document   : bookmanager
    Created on : Mar 10, 2012, 9:18:38 PM
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FooBar Bookstore</title>
             <%
            response.setHeader("Pragma","no-cache");
            response.setHeader("Cache-Control","no-store");
            response.setHeader("Expires","0");
            response.setDateHeader("Expires",-1);
        %>
        
         <%
        if(session.getAttribute("manager")== null){
            response.sendRedirect("managerlogin5678.jsp");
            }

               else{
        %>
        
    </head>
    <body>
        
         <% out.print("Welcome " +session.getAttribute("manager")+ "");%>
          <% out.print("Welcome " +session.getAttribute("id")+ "");%>
        <h1>Book Manager</h1>
        
        <input type="hidden" name="mangid" value="<%=session.getAttribute("id")%>"/>
        
        <a href="addproduct.jsp"> Add Product </a>
        <a href="editproduct.jsp"> Edit Product </a>
        <a href="deleteproduct.jsp"> Delete Product </a>
        <a href="ManagerLogoutServlet"> Logout </a>
        
    </body>
    <%
    }
    %>
</html>
